package com.zcp.wizard;

import android.app.Activity;
import android.os.Bundle;
import android.text.Html;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class HelpActivity extends Activity {
	private Button btn = null;
	private View.OnClickListener listener = null;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.help);
		MyBroadcastReceiver.register(this);

		((TextView) findViewById(R.id.textHelp)).setText(Html
				.fromHtml(getString(R.string.help_content)));
		// TODO 帮助说明还是假的
		btn = (Button) findViewById(R.id.btnBack);

		listener = new View.OnClickListener() {

			// @Override
			public void onClick(View v) {
				finish();
			}
		};
		btn.setOnClickListener(listener);

	}

	@Override
	public void onDestroy() {
		btn = null;
		listener = null;
		MyBroadcastReceiver.unRegister(this);
		super.onDestroy();
	}

	@Override
	public void finish() {
		super.finish();
		overridePendingTransition(R.anim.zoomin, R.anim.zoomout); // 此为自定义的动画效果，下面两个为系统的动画效果
	}
}
